package com.sc.nft.entity.vo;

import com.sc.nft.enums.SaasTaskMeetConditionsLocationEnum;
import com.sc.nft.enums.SaasTaskRestEnum;
import com.sc.nft.enums.SaasTaskTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;
@Data
public class SaasTaskCheckTheProgressVO {

    @ApiModelProperty(value = "任务重置类型")
    private SaasTaskRestEnum taskRest;

    @ApiModelProperty(value = "任务重置类型描述")
    private String taskRestName;

    @ApiModelProperty(value = "主动邀请人数(这里意味着是邀请者的意思)")
    private Integer voluntarySum;

    @ApiModelProperty(value = "任务进度")
    private BigDecimal schedule;

    @ApiModelProperty(value = "用户任务进度")
    private BigDecimal userSchedule;

    @ApiModelProperty("任务类型")
    private SaasTaskTypeEnum taskTypeEnum;

    @ApiModelProperty("任务生效位置")
    private List<SaasTaskMeetConditionsLocationEnum> locationList;

    @ApiModelProperty("任务类型名称")
    private String taskTypeName;

    public void setTaskRest(SaasTaskRestEnum taskRest) {
        this.taskRest = taskRest;
        this.taskRestName = taskRest.getDesc();
    }

    public void setTaskTypeEnum(SaasTaskTypeEnum taskTypeEnum) {
        this.taskTypeEnum = taskTypeEnum;
        this.taskTypeName = taskTypeEnum.getDesc();
    }
}
